package com.qwc.blog.entity.vo.user;

import com.qwc.blog.entity.User;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author qwc
 * @Date 2021/10/27 13:48
 */
@Data
public class UpdateIntroductionDto {
    @NotNull(message = "用户id不能为空")
    public Integer userId;
    public String introduction;

    public User createUser() {
        User user = new User();
        user.setUserId(userId);
        user.setIntroduction(introduction);
        return user;
    }
}
